package com.shtel.bss.saas.tenant.entity.repository;


import com.github.pagehelper.PageInfo;
import com.shtel.bss.saas.core.data.common.entiry.repository.IBaseRepository;
import com.shtel.bss.saas.tenant.entity.SysTenant;

/**
 * sys_tenant仓库接口
 * @author xiezhiwei 2020-02-05 21:21
 */
public interface ISysTenantRepository extends IBaseRepository<SysTenant> {

    /**
     * 租户列表查询
     * @param sysTenant
     * @return
     */
    PageInfo<SysTenant> selectEntity(SysTenant sysTenant, int pageSize, int pageNum);
    /**
     * 租户详情查询
     * @param tenantId
     * @return
     */
    SysTenant selectEntityByTenantId(Long tenantId);

    void updateEntity(SysTenant sysTenant);

    /**
     * 已授予权限的租户
     * @param authId
     * @return
     */
    PageInfo<SysTenant> selectEntityByAuthId(Long authId,int pageSize,int pageNum);

    /**
     * 未授予权限的租户
     * @param authId
     * @return
     */
    PageInfo<SysTenant> selectEntityByAuthIdNot(Long authId,int pageSize,int pageNum);
}